package com.junlaninfo;

/**
 * Created by 辉 on 2020/9/11.
 * 演示避免ThreadLocal内存泄漏
 */
public class Test4 {
    public static void main(String[] args) {
        ThreadLocal<String> local = new ThreadLocal<String>();
        local.set("xuexionghui");
        local.remove();
        local=null;
    }
}
